function getDefaultState() {
    return {
        groupName: '',
        groupCode: '',
        userInfo: {
            cityList: [],
            userGroup: null,
        },
    };
}

const state = getDefaultState();

const mutations = {
    setGroupInfo(state: any, groupInfo: any) {
        state.groupName = groupInfo.groupName;
        state.groupCode = groupInfo.groupCode;
    },
    setCommonUserInfo(state: any, commonUserInfo: any) {
        state.userInfo = commonUserInfo;
    },
};
const actions = {};
const getters = {};

export default {
    namespaced: true,
    state,
    mutations,
    actions,
    getters,
};
